const mongoose = require('mongoose')
const { Schema } = mongoose

const feedSchema = new Schema({
  id: Number,
  title: String,
  image: String,
  price: Number,
  originPrice: Number,
  saleNum: Number,
  couponValue: String,
  isFreePostage: Boolean,
  tabId: Number,
}, { _id: false })

const FeedModel = mongoose.model('feed', feedSchema)

module.exports = FeedModel
